package org.edu.modules.sxjy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.edu.modules.sxjy.entity.VeCommon;
import org.edu.modules.sxjy.entity.VeTeacher;
import org.edu.modules.sxjy.mapper.VeTeacharMapper;
import org.edu.modules.sxjy.service.IVeTeacharService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VeTeacharServiceImpl
        extends ServiceImpl<VeTeacharMapper, VeTeacher>
        implements IVeTeacharService
{
    @Autowired
    private VeTeacharMapper veTeacharMapper;

    public List<VeTeacher> selectAll(VeTeacher veTeacher, Integer startLine, Integer pageSize, VeCommon veCommon)
    {
        return this.veTeacharMapper.selectAll(veTeacher, startLine, pageSize, veCommon);
    }

    public int getSumPage(VeTeacher veTeacher, VeCommon veCommon)
    {
        return this.veTeacharMapper.getSumPage(veTeacher, veCommon);
    }

    public VeTeacher getTeacherId(int userId)
    {
        return this.veTeacharMapper.getTeacherId(userId);
    }

    public List<Integer> getTeacherBj(int id)
    {
        return this.veTeacharMapper.getTeacherBj(id);
    }
}
